package com.hw.protocol.tool.decode.hw;

import com.hw.protocol.tool.model.entity.hw.AbsFlowMeter;
import com.hw.protocol.tool.model.entity.hw.Dtu50His;

/**
 * @author : lihy
 * @date : 2023/3/22 9:38
 * description: 流量计(5000/5100)历史数据解码器
 */
public class Dtu50HisDecode extends Dtu50Decode implements IHisDecode {

    private Dtu50His hfl;

    public Dtu50HisDecode(AbsFlowMeter fm, byte[] data) {
        super(fm, data);
        this.hfl = (Dtu50His) fm;
    }

    @Override
    protected void setTime() {
        hfl.setTime(getTime(dataBuf));
    }

    @Override
    protected boolean hisData() {
        return true;
    }
}
